Skip to content

feat(integrations): Support Django 5.0#2490

Merged
sentrivana merged 33 commits into
masterfrom
django-5.0
Nov 14, 2023
Merged

feat(integrations): Support Django 5.0#2490
sentrivana merged 33 commits into
masterfrom
django-5.0

Conversation

@sentrivana

@sentrivana sentrivana commented Nov 7, 2023

Copy link
Copy Markdown
Contributor

Run our Django test suite on Django 5.0 (beta) and make sure the tests pass.

Fix the way we wrap signal receivers: Django 5.0 introduced async receivers and changed the signature of the Signal._live_receivers method to return both sync and async receivers. We are just ignoring the async receivers in this PR (and not wrapping them to create spans) since ASGI Django doesn't create transactions.

We'll need to change the Django version in tox.ini to 5.0 once it's been released. At the moment we're using the 5.0b1 release.

See #2489
Closes #2383

@sentrivana sentrivana mentioned this pull request Nov 7, 2023
6 tasks
@sentrivana sentrivana changed the title Run tests on Django 5.0 Support Django 5.0 Nov 13, 2023
@sentrivana sentrivana changed the title Support Django 5.0 feat(integrations): Support Django 5.0 Nov 13, 2023
@sentrivana
sentrivana marked this pull request as ready for review November 13, 2023 14:27

@szokeasaurusrex szokeasaurusrex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, besides the small comments I left regarding deprecated portions of typing

Comment thread sentry_sdk/integrations/django/asgi.py Outdated
Comment thread sentry_sdk/integrations/django/signals_handlers.py Outdated
@sentrivana
sentrivana enabled auto-merge (squash) November 14, 2023 12:35
@sentrivana
sentrivana disabled auto-merge November 14, 2023 12:36
@sentrivana
sentrivana enabled auto-merge (squash) November 14, 2023 12:37

@szokeasaurusrex szokeasaurusrex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sentrivana
sentrivana merged commit 44b0244 into master Nov 14, 2023
@sentrivana
sentrivana deleted the django-5.0 branch November 14, 2023 12:53
@cclauss

cclauss commented Jun 26, 2024

Copy link
Copy Markdown
Contributor

Please consider something similar for Django v5.1b1 which was released today.

@sentrivana

Copy link
Copy Markdown
Contributor Author

@cclauss Thanks for the poke! Here: #3207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sentry_sdk.init throws an exception on Django 5.0a1

4 participants